package com.syncomponents;

import org.perf4j.log4j.aop.TimingAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;

@Configuration("ctx")
@ComponentScan(basePackages = "com.syncomponents.client")
@EnableAspectJAutoProxy(proxyTargetClass = true)
@ImportResource("classpath:client-test.xml")
public class AppClientConfig {

    @Bean
    public TimingAspect timingAspect() {
        return new TimingAspect();
    }
}
